package group.program.Controller;

import group.program.Service.EmbeddingService;
import group.program.pojo.Document;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
@RestController
public class FileSearchController {
    @Autowired
    private EmbeddingService embeddingService;
    @GetMapping("/fileSearch")
    public Document fileSearch(String question){
        return embeddingService.searchFile(question);
    }
}
